#ifndef  SAFE_DELETE_H
#define  SAFE_DELETE_H

#include <csdtint>

template <typename T>
void SafeDelete(T *&p) {
	if(p){
		delete p;
		p = nullptr;	
	}			
}


template <typename T>
void SafeDeleteArray(T *&p){
	if(p){
		delete [] p;
		p = nullptr;
	}
}

#endif
